package net.wofly.sale.stock.service;

import java.util.List;

import net.wofly.sale.stock.domain.StockWarning;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

public interface IStockWarningService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	public StockWarning save(StockWarning entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	public void delete(StockWarning entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	public void delete(String key);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	public StockWarning findOne(String key);
	
	public Page<StockWarning> findAll(Specification specification, Pageable pageable);
	
	public List<StockWarning> save(List<StockWarning> entityList) ;

}
